/**
 * ISSG Sony China 2011 
 *
 */
package cn.com.dragonsoftbravo.utils;

/**
 * The Class DimVO.
 */
public class DimVO {

	private Object name;

	private Object key;

	private Object infoA;

	private Object infoB;

	private Object infoC;

	/**
	 * Instantiates a new dim vo.
	 *
	 * @param name the name
	 * @param key the key
	 */
	public DimVO(String name, String key) {
		super();
		this.name = name;
		this.key = key;
	}

	/**
	 * Instantiates a new dim vo.
	 */
	public DimVO() {

	}

	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public Object getName() {
		return name;
	}

	/**
	 * Sets the name.
	 *
	 * @param name the new name
	 */
	public void setName(Object name) {
		this.name = name;
	}

	/**
	 * Gets the key.
	 *
	 * @return the key
	 */
	public Object getKey() {
		return key;
	}

	/**
	 * Sets the key.
	 *
	 * @param key the new key
	 */
	public void setKey(Object key) {
		this.key = key;
	}

	/**
	 * Gets the info a.
	 *
	 * @return the info a
	 */
	public Object getInfoA() {
		return infoA;
	}

	/**
	 * Sets the info a.
	 *
	 * @param infoA the new info a
	 */
	public void setInfoA(Object infoA) {
		this.infoA = infoA;
	}

	/**
	 * Gets the info b.
	 *
	 * @return the info b
	 */
	public Object getInfoB() {
		return infoB;
	}

	/**
	 * Sets the info b.
	 *
	 * @param infoB the new info b
	 */
	public void setInfoB(Object infoB) {
		this.infoB = infoB;
	}

	/**
	 * Gets the info c.
	 *
	 * @return the info c
	 */
	public Object getInfoC() {
		return infoC;
	}

	/**
	 * Sets the info c.
	 *
	 * @param infoC the new info c
	 */
	public void setInfoC(Object infoC) {
		this.infoC = infoC;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((key == null) ? 0 : key.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DimVO other = (DimVO) obj;
		if (key == null) {
			if (other.key != null)
				return false;
		} else if (!key.equals(other.key))
			return false;
		return true;
	}
}
